﻿@model Coslen.TahorCRM.Domain.Entities.ViewModels.Editing.ContactEditViewModel
@Html.HiddenFor(model => model.Contact.ContactId)
@Html.HiddenFor(model => model.Contact.CreatedAt)
@Html.HiddenFor(model => model.Contact.UpdatedAt)
@Html.HiddenFor(model => model.Contact.DeletedAt)
@Html.HiddenFor(model => model.Contact.UserId)
<fieldset>
    <legend>Personal Information</legend>
    <!-- Row: Labels -->
    <div class="personal_labels">
        <div class="firstName">@Html.LabelFor(model => model.Contact.FirstName)</div>
        <div class="middleNames">@Html.LabelFor(model => model.Contact.MiddleNames)</div>
        <div class="lastName">@Html.LabelFor(model => model.Contact.LastName)</div>
    </div>
    <div class="personal_editors">
        <div class="firstName">
            @Html.EditorFor(model => model.Contact.FirstName)
            @Html.ValidationMessageFor(model => model.Contact.FirstName)
        </div>
        <div class="middleNames">
            @Html.EditorFor(model => model.Contact.MiddleNames)
            @Html.ValidationMessageFor(model => model.Contact.MiddleNames)
        </div>
        <div class="lastName">
            @Html.EditorFor(model => model.Contact.LastName)
            @Html.ValidationMessageFor(model => model.Contact.LastName)
        </div>
    </div>
    <div class="personal_labels">
        <div class="title">@Html.LabelFor(model => model.Contact.TitleId)</div>
        <div class="gender">@Html.LabelFor(model => model.Contact.GenderId)</div>
        <div class="bornOn">@Html.LabelFor(model => model.Contact.BornOn)</div>
    </div>
    <div class="personal_editors">
        <div class="title">
            @Html.DropDownListFor(model => model.Contact.TitleId, Model.TitleList)
            @Html.ValidationMessageFor(model => model.Contact.TitleId)
        </div>
        <div class="gender">
            @Html.DropDownListFor(model => model.Contact.GenderId, Model.GenderList)
            @Html.ValidationMessageFor(model => model.Contact.GenderId)</div>
        <div class="bornOn">
            @Html.EditorFor(model => model.Contact.BornOn)
            @Html.ValidationMessageFor(model => model.Contact.BornOn)</div>
    </div>
    
</fieldset>
